<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>
</head>
<body>

<script src="jquery-2.1.1.js"></script>
    <script>
        /*封装jq的简单效果*/





     for(var x=1;x<=9;x++){
         for(var y=1;y<=x;y++){
            document.write( y + "*" + x + "=" + (x * y)+"&nbsp;")
         }
         document.write('<br>');
     }

    /*   console.log(arr.length);*/
    /*   var max=arr[0];
       var min=arr[0];*/
        /*for(var i=0;i<=arr.length;i++) {


            /!* var tmp;
            if(arr[i]>arr[i+1]){
                tmp=arr[i+1];
                arr[i+1]=arr[i];
                arr[i]=tmp;

            }
            console.log(arr[i]);*!/

            /!*
                    if(arr[i]%2==0){
                        console.log('偶数：'+arr[i]);
                    }else if(arr[i]%2!=0){
                        console.log('奇数：'+arr[i]);
                    }*!/


            /!*最大数*!/
            /!* if(max<arr[i]){
                max=arr[i];
            }else if(min>arr[i]){
                min=arr[i];
            }

       console.log("max:"+max+'\n'+'min:'+min);*!/


}
*/
    </script>
</body>
</html>